package com.example.myapplication5;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {
  private TextView tv_show;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        tv_show=(TextView) findViewById(R.id.textView5);
    }

    public void click(View view) {
        tv_show.setText("日期： 12/31\n" +
                "温度： 1-10℃\n"+"穿衣：棉服类\n"+"空气质量：优"

        );
    }
}